#name = input('please enter your name: ')
#print('hello,', name)
from main import print_hi
import math

#a = 100_3399_00
#print(a)
#print(r'''line1
#...line2
#...line3''')

b = 10
#print(b//2)

n = 123
f = 456.789
s1 = 'Hello, world'
s2 = 'Hello, \'Adam\''
s3 = r'Hello, "Bart"'
s4 = r'''Hello,
Bob!'''

#print(n)
#print(f)
#print(s1)
#print(s2)
#print(s3)
#print(s4)
#p = n
#print(p)
#n = 234
#print(p)

#print(ord('A'))
#print(ord('中'))
#print(chr(69))


#s = 'hi,%s,you have ￥%d' %('wind',10000000)
#print(s)
#s2 = 'hi,%s,you have' %'wind'
#print(s2)

#age = 19
#name = 'wind'
#if age >= 18:
 #   print('adult')
  #  print("hello")
#elif age >=6:
 #   print('teenager')
#else:
 #   print('kid')

#s = input('生日是：')
#age = int(s)



#match age:
 #   case 18:
  #      print('adult')
   # case 6:
    #    print('teenager')
    #case _:
     #   print('kid')


animal = ['dog','cat','pig']
print(animal)
animal.append('rabbit')
print(animal)
pet = animal.pop()
print(animal)
print(pet)
animal.insert(1,'fish')
print(len(animal))

fruit = ('apple','pear','banana')
print(fruit)
fruit = list(fruit)

fruit.sort()

fruit.append('cherry')
print(fruit)

def add(x,y):
    if(isinstance(x,int) and isinstance(y,int)):
        if x>=y:
            print("x > y")
        else:
            print("x < y")
    else:
        print("x or y is not int")

add(2,2)

def nop():
    if 4>5:
        pass

def f(a,b,c):
    d = b**2 - 4*a*c
    if d<0:
        print("no solution")
    else:
        #x1 = (-b+d**0.5)/(2*a)
        x1 = (-b+math.sqrt(d))
        x2 = (-b-d**0.5)/(2*a)
        print("x1 = ",x1,"x2 = ",x2)

f(4,13,4)

print(2**5)
def f(x,n):
    if(n>0):
        print(x**n)
    else:
        print(1)

f(2,0)

def add_end(L=None):
    if L is None:
        L = []
    L.append('END')
    return L

print(add_end(['a']))


